package pre_processing;

import java.util.ArrayList;
import java.util.List;

import util.Util;

public class StopWordRemoval {

	public static List<String> stopWordRemoval (ArrayList<String> words){
		List<String> temp = (List<String>) words.clone();
		for (String kata : words){
			if(Util.getTreeStopWord().isExist(kata.hashCode())){
				temp.remove(kata);
			} else {
				//temp.set(words.indexOf(kata), Stemming.doStemming(kata));
			}
		}
		words = null;
		System.gc();
		return temp;
	}
}
